/**
 * 
 */
package com.ptma.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;

/**
 * @author yahya
 * 
 */
//@Entity
public class DefectAttachement implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final char ATTACHEMENT_IMAGE = 'I';
	public static final char ATTACHEMENT_TEXT = 'F';
	public static final char ATTACHEMENT_ZIP = 'Z';
	public static final char ATTACHEMENT_DOCX = 'D';

	private Long id;

	private byte[] attachement;
	private char attachementType;

	@Column
	@Lob
	public byte[] getAttachement() {
		return attachement;
	}

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setAttachement(byte[] attachement) {

		this.attachement = attachement;
	}

	@Column(length = 1)
	public char getAttachementType() {
		return attachementType;
	}

	public void setAttachementType(char attachementType) {
		this.attachementType = attachementType;
	}

}
